home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19970626-19970929
/
000118_news@newsmaster….columbia.edu _Wed Jul 30 10:58:17 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA18576
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 30 Jul 1997 10:58:17 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA09107
for kermit.misc@watsun; Wed, 30 Jul 1997 10:58:16 -0400 (EDT)
Newsgroups: comp.protocols.kermit.misc
Path: news.columbia.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!news.mdor.state.mn.us!chippy.visi.com!news-out.visi.com!ix.netcom.com!gerlach
From: gerlach@netcom.com (Matthew H. Gerlach)
Subject: using ckermit as ppp dialer
Message-ID: <gerlachEE4zFA.773@netcom.com>
Organization: Netcom On-Line Services
Date: Wed, 30 Jul 1997 14:40:22 GMT
Lines: 60
Sender: gerlach@netcom23.netcom.com
Xref: news.columbia.edu comp.protocols.kermit.misc:7407
Hello fellow kermit users,
Yesterday, I posted an explanation of how one could use ckermit as a ppp
dialer for a UNIX machine. I have been asked to post the script; so
I have included it below. In particular I was bringing up a ppp link
between two SunOS boxes. The script below would be executed on my
machine at work and would call back my machine at home and then bring up
the ppp connection. The whole thing relies on the use of the "redirect"
command that allows any program that accesses STDIN/STDOUT to be used
with a serial connection. In this case the "program" being redirected,
myppp, is a one line shell script that fires up pppd with the proper command
line arguments.
Happy telehacking,
Matthew
; Start of script to dial, login and bring up ppp
log session
set line /dev/cua1
set speed 38400
set flow RTS/CTS
set modem hayes
set dial speed-matching off
dial 4770239
if success echo successful dial
else exit
; now that we have made the modem connection, send a CR to
; force the login prompt.
output \13
input 5 login:
if failure echo failed to get login prompt, exit
output matt\13
input 5 Password:
if failure echo faied to get password prompt, exit
;
; output the password that was put on the command line
;
output \&@[3]\13
; look for my prompt
input 5 duvel
if failure echo failed to find duvel
; send command starting ppp on far end
output myppp\13
sleep 2
echo fired up ppp on remote machine
;
; now fire up ppp on my end
;
redirect myppp
;
; if the connection goes down, just exit.
;
quit